from appium.webdriver.common.appiumby import AppiumBy

from page.base_page import BasePage
from page.personal_info_page import PersonalInfoPage


class PersonalDetailPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_personal_info(self) -> PersonalInfoPage:
        self.find(AppiumBy.ID, 'kuz').click()
        return PersonalInfoPage(self.driver)